<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div th:fragment="menuUlTag(list)">
    <ul th:class="sidebar-submenu">
        <li th:each="resource : ${list}">
            <a th:href="@{|${resource.resourceUrl}?resourceId=${resource.resourceId}|}">
                <i th:class="|zmdi ${resource.resourceIcon}|"></i>
                <span th:text="${resource.resourceName}"></span>
            </a>
            <div th:if="${resource.childResource} != null" th:replace="menuUlTag(${resource.childResource})"></div>
        </li>
    </ul>
</div>
</html>